import request from '../utils/request'

export default {
  getClassList() {
    return request.get<any, any>(`/api/item/cateList.json`)
  },
  getClassListId(id:any){

    return request.get<any,any>(`/api/item/cateList.json?categoryId=${id}`)
  },
  getList(subCategoryId:any,categoryId:any){
    return request.get<any,any>(`/api/item/list.json?subCategoryId=${subCategoryId}&categoryId=${categoryId}`)
  }
}
